package com.wlps.vo.sendcenter.warehouse;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * <p>
 *
 * </p>
 *
 * @author ZWYZY
 * @since 2020/8/10
 */
@Data
@ApiModel(value = "商品库房储备设置修改或创建Vo")
public class WarehouseSettingSaveOrUpdateVo {
    @ApiModelProperty(value = "商品id")
    @NotNull(message = "必须填商品id")
    private Long commodityId;
    @ApiModelProperty(value = "商品名称")
    @NotNull(message = "必须填商品名称")
    @NotBlank(message = "商品名称不能为空")
    private String productName;

    @ApiModelProperty(value = "库房id（默认为中心库房,id=1）")
    private Long warehouseId;
    @ApiModelProperty(value = "库房名称(默认为中心库房)")
    private String name;

    @ApiModelProperty(value = "商品最大储量")
    @NotNull(message = "必须填商品最大储量")
    private Long maximumCommodity;

    @ApiModelProperty(value = "缺货量")
    private Long outOfStockNumber;

    @ApiModelProperty(value = "商品当前储量")
    @NotNull(message = "必须填商品当前储量")
    private Long currentNumber;
}
